package com.annhoa.infrastructure;

import static spark.Spark.get;
import static spark.Spark.port;

/**
 * @Author annhoa
 * @Date 2018/10/29 16 29
 * @Description
 */
public class SparkMain {

    public static void main(String[] args) {
        port(8080); // 默认端口4567
        get("/say/*/to/*", (request, response) -> {
            return "Number of splat parameters: " + request.splat().length + "response:" + request;
        });
        get("/say/good", (request, response) -> {
            return request.params();
        });
    }

}
